package com.jamal2362.apktool.fragment;

import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceFragment;
import com.jamal2362.apktool.R;

public class PreferenceApplicationFragment extends PreferenceFragment
{

	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		addPreferencesFromResource(R.xml.preference_application);
		Preference check = findPreference("light_theme");
		check.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener()
			{
				@Override
				public boolean onPreferenceClick(Preference p1)
				{
					((PreferenceActivity)getActivity()).recreate();
					return false;
				}
			});
	}
}
